package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.LevelMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.LevelService;
import com.the4man.cnbdw.utils.SelectModel;
import com.the4man.framework.model.Level;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("levelService")
public class LevelServiceImpl extends AbstractService<Level> implements LevelService {
    @Autowired
    LevelMapper levelMapper;

    public LevelServiceImpl() {
    }

    public List<SelectModel> getLevelSelectData() {
        return this.levelMapper.getLevelSelectData();
    }

    public String selectLevelId(Short level) {
        return this.levelMapper.selectLevelId(level);
    }

    public Level selectByName(String name) {
        return this.levelMapper.selectByName(name);
    }

    public Level selectMByName(String id, String name) {
        return this.levelMapper.selectMByName(id, name);
    }
}